<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <script src="js/axios.min.js"></script>
    <script>
        async function send(){
            var num = 0;
            await axios.get("getStr").then(resp =>{
                num = resp.data;
            });
            alert("num="+num);
        }
    </script>
</head>
<body>
<input type="button" value="提交" onclick="send()">
</body>
</html>